# Maintainer: Simon Rupf <simon@rupf.net>
pkgname=libthreadar
pkgver=1.4.0
pkgrel=1
pkgdesc="a C++ library that provides several classes to manipulate threads"
url="https://libthreadar.sourceforge.net/"
arch="all"
license="LGPL-3.0-or-later"
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/libthreadar/libthreadar-$pkgver.tar.gz"

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/libthreadar.a
}

sha512sums="
3665817cf6327d4d24792d8cc2bd0a458bda1651b471e3440c1f63c22f397cfb4c8d81482f937e13f67f5ff1414662b1f69d9c311362a0a7a9249e8bc0236751  libthreadar-1.4.0.tar.gz
"
